Skip to content

feat: add new agent#36284

Merged
zyssyz123 merged 25 commits into
mainfrom
feat/dify_agent
May 19, 2026
Merged

feat: add new agent#36284
zyssyz123 merged 25 commits into
mainfrom
feat/dify_agent

Conversation

@zyssyz123
Copy link
Copy Markdown
Contributor

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

@dosubot dosubot Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label May 18, 2026
@zyssyz123 zyssyz123 marked this pull request as draft May 18, 2026 02:48
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 18, 2026

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 0.00% 44.51% +44.51%
Strict coverage 0.00% 44.02% +44.02%
Typed symbols 0 22,758 +22,758
Untyped symbols 0 28,686 +28,686
Modules 0 2598 +2,598

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

❌ Patch coverage is 89.95177% with 125 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.02%. Comparing base (b04b444) to head (96b8d09).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
api/services/agent/composer_service.py 80.38% 37 Missing and 14 partials ⚠️
api/services/agent/roster_service.py 77.44% 20 Missing and 10 partials ⚠️
api/models/agent.py 91.30% 5 Missing and 5 partials ⚠️
api/clients/agent_backend/client.py 83.92% 8 Missing and 1 partial ⚠️
api/clients/agent_backend/factory.py 50.00% 5 Missing ⚠️
api/clients/agent_backend/fake_client.py 90.47% 1 Missing and 3 partials ⚠️
api/models/agent_config_entities.py 95.83% 2 Missing and 2 partials ⚠️
api/services/entities/agent_entities.py 94.28% 2 Missing and 2 partials ⚠️
api/clients/agent_backend/errors.py 88.00% 3 Missing ⚠️
api/services/agent/composer_validator.py 93.75% 1 Missing and 2 partials ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #36284      +/-   ##
==========================================
+ Coverage   85.99%   86.02%   +0.03%     
==========================================
  Files        4458     4477      +19     
  Lines      211918   213442    +1524     
  Branches    39544    39669     +125     
==========================================
+ Hits       182232   183611    +1379     
- Misses      26471    26569      +98     
- Partials     3215     3262      +47     
Flag Coverage Δ
api 85.59% <89.95%> (+0.06%) ⬆️
dify-ui 94.80% <ø> (ø)
web 86.56% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 18, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-05-19 10:30:47.480810800 +0000
+++ /tmp/pyrefly_pr.txt	2026-05-19 10:30:35.226792903 +0000
@@ -1768,6 +1768,20 @@
    --> tests/test_containers_integration_tests/trigger/test_trigger_e2e.py:857:21
 ERROR Argument `Literal['unsupported_language']` is not assignable to parameter `language` with type `CodeLanguage` in function `core.helper.code_executor.code_executor.CodeExecutor.execute_workflow_code_template` [bad-argument-type]
   --> tests/test_containers_integration_tests/workflow/nodes/code_executor/test_code_executor.py:10:62
+ERROR Cannot index into `bool` [bad-index]
+  --> tests/unit_tests/clients/agent_backend/test_event_adapter.py:53:12
+ERROR Cannot index into `float` [bad-index]
+  --> tests/unit_tests/clients/agent_backend/test_event_adapter.py:53:12
+ERROR Cannot index into `int` [bad-index]
+  --> tests/unit_tests/clients/agent_backend/test_event_adapter.py:53:12
+ERROR Cannot index into `list[JsonValue]` [bad-index]
+  --> tests/unit_tests/clients/agent_backend/test_event_adapter.py:53:12
+ERROR Cannot index into `str` [bad-index]
+  --> tests/unit_tests/clients/agent_backend/test_event_adapter.py:53:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/unit_tests/clients/agent_backend/test_event_adapter.py:53:12
+ERROR Cannot index into `object` [bad-index]
+   --> tests/unit_tests/clients/agent_backend/test_request_builder.py:132:12
 ERROR Expected a callable, got `None` [not-callable]
   --> tests/unit_tests/commands/test_clean_expired_messages.py:33:9
 ERROR Expected a callable, got `None` [not-callable]

@github-actions github-actions Bot added the web This relates to changes on the web. label May 19, 2026
@zyssyz123 zyssyz123 marked this pull request as ready for review May 19, 2026 03:57
@zyssyz123 zyssyz123 requested review from a team May 19, 2026 03:57
@dosubot dosubot Bot removed the size:XL This PR changes 500-999 lines, ignoring generated files. label May 19, 2026
@zyssyz123 zyssyz123 requested a review from hjlarry May 19, 2026 07:55
hjlarry
hjlarry previously approved these changes May 19, 2026
MRZHUH
MRZHUH previously approved these changes May 19, 2026
Copy link
Copy Markdown
Contributor

@MRZHUH MRZHUH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zyssyz123 zyssyz123 dismissed stale reviews from MRZHUH and hjlarry via d3c568a May 19, 2026 08:12
Comment thread api/models/agent.py Outdated
Comment thread api/models/agent.py Outdated
Comment thread api/models/agent.py Outdated
Comment thread api/models/agent.py Outdated
Comment thread api/models/agent.py Outdated
Comment thread api/models/agent.py Outdated
Comment thread api/models/agent.py Outdated
Comment thread api/models/agent.py Outdated
Comment thread api/models/agent.py Outdated
Comment thread api/models/agent.py Outdated
Comment thread api/models/agent.py Outdated
Comment thread api/models/agent.py Outdated
Comment thread api/models/agent.py Outdated
Comment thread api/clients/agent_backend/event_adapter.py
Comment thread api/services/agent/roster_service.py Outdated
@zyssyz123 zyssyz123 requested review from MRZHUH and hjlarry May 19, 2026 10:36
@zyssyz123 zyssyz123 enabled auto-merge May 19, 2026 10:38
@zyssyz123 zyssyz123 added this pull request to the merge queue May 19, 2026
Merged via the queue into main with commit d9e90d0 May 19, 2026
38 checks passed
@zyssyz123 zyssyz123 deleted the feat/dify_agent branch May 19, 2026 10:57
zhangtaodemama added a commit to zhangtaodemama/langgenius-dify-bfaadcb0c706 that referenced this pull request May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants